package com.example.ezexcel.controller;

import com.alibaba.excel.EasyExcel;
import com.alibaba.excel.context.AnalysisContext;
import com.alibaba.excel.event.AnalysisEventListener;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.example.ezexcel.enumerator.ServiceCode;
import com.example.ezexcel.ex.ServiceException;
import com.example.ezexcel.mapper.TopicMapper;
import com.example.ezexcel.pojo.entity.QuestionData;
import com.example.ezexcel.pojo.param.SelectParam;
import com.example.ezexcel.pojo.param.SelectTopicNumParam;
import com.example.ezexcel.pojo.param.TypeList;
import com.example.ezexcel.pojo.vo.FreemarkerData;
import com.example.ezexcel.response.JsonResult;
import com.example.ezexcel.util.WordUtil;
import jdk.nashorn.internal.ir.annotations.Ignore;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.lang.reflect.Field;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;

@Slf4j
@RestController
@CrossOrigin(origins = "*", maxAge = 3600)
@RequestMapping("/start")
public class StartController {

    @Autowired
    private TopicMapper topicMapper;

    @CrossOrigin(origins = "*", maxAge = 3600)
    @PostMapping("/isStart")
    public JsonResult isStart(){
        return JsonResult.ok();
    }



}
